package ex205n;

import ex205n.exp.ArithmeticExpression;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String exp = input.nextLine();

        ArithmeticExpression expression = new ArithmeticExpression(exp);
        expression.compute();

        System.out.print(expression.getRegularExpression() + " = ");
        System.out.println(expression.getResult());
    }
}
